<template>

  <div>
    <el-row>
      <el-col span="5" offset="15">
          {{count}}条待读消息 <el-button type="success" plain>全部标记为已读</el-button>
      </el-col>

    </el-row>
    <el-divider></el-divider>
    <el-row>
      <el-col :span="16" offset="4">
        <el-table
          :data="tableData"
          border
          style="width: 100%"
          @row-click="overallClick">
          <el-table-column
            prop="date"
            label="状态"
            width="180">
          </el-table-column>
          <el-table-column
            prop="name"
            label="消息详情"
            width="180">
          </el-table-column>
          <el-table-column
            prop="address"
            label="时间">
          </el-table-column>
        </el-table>
      </el-col>
    </el-row>
    <el-row>
      <el-col span="10" offset="5">
        <el-pagination
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page.sync="currentPage3"
          :page-size="100"
          layout="prev, pager, next, jumper"
          :total="1000">
        </el-pagination>
      </el-col>
    </el-row>
  </div>
</template>

<script>
    export default {
        name: "UpgradeMessage",
      currentPage3: 5,
      methods:{
        overallClick(row){
          this.$router.push("/ApplyInvoice");
        },
        handleSizeChange(val) {
          console.log(`每页 ${val} 条`);
        },
        handleCurrentChange(val) {
          console.log(`当前页: ${val}`);
        }
      },
        data(){
          return{
            count:20,
            tableData: [{
              date: '2016-05-02',
              name: '王小虎',
              address: '上海市普陀区金沙江路 1518 弄'
            }, {
              date: '2016-05-04',
              name: '王小虎',
              address: '上海市普陀区金沙江路 1517 弄'
            }, {
              date: '2016-05-01',
              name: '王小虎',
              address: '上海市普陀区金沙江路 1519 弄'
            }, {
              date: '2016-05-03',
              name: '王小虎',
              address: '上海市普陀区金沙江路 1516 弄'
            }]
          }
        }
    }
</script>

<style scoped>

</style>
